<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="../../common/assets_header.jsp"/>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script>
jQuery(document).ready(function() {   

	if('${baseLov.valid}'==''){
		$("input[name=valid]:eq(1)").attr("checked",'checked'); 
	}{
		$("input[name=valid]:eq(${baseLov.valid})").attr("checked",'checked');
	}
	  
	
});

function back(){
	$("#lov_form").attr("action","<%=request.getContextPath()%>/base/lov/list");
	$("#lov_form").submit();
}



</script>

</head>
<body>

	
	
		
		
		<!-- content -->	
		<div class="page-content">
			<div class="page-header">
							<h1>
						<c:if test="${baseLov.baseLovId==null}"><spring:message code="新增lov"></spring:message></c:if>
							<c:if test="${baseLov.baseLovId!=null}"><spring:message code="编辑lov"></spring:message></c:if>
								<small>
									<i class="icon-double-angle-right"></i>
									
								</small>
							</h1>
							
					
				</div>
				<div class="row">
					<c:if test="${success}">
						<div class="alert alert-block alert-success">
									<button class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
									<strong><spring:message code="success"></spring:message>!</strong> <spring:message code="save success"></spring:message>！
								</div>
					</c:if>
					
					<c:if test="${success==false}">
						<div class="alert alert-danger">
							<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
							<strong>
								<i class="icon-remove"></i>
								<strong><spring:message code="failure"></spring:message>!</strong> ${message}
							</strong>
						</div>
					</c:if>
					<div class="col-xs-12">
					<form id="lov_form" action="<c:if test="${baseLov.baseLovId==null}">add</c:if><c:if test="${baseLov.baseLovId!=null}">edit</c:if>" method="post" class="form-horizontal">
						<input type="hidden" name="sorting_column_order" id="sorting_column_order" value="${sorting_column_order }"/>
						<input type="hidden" name="sorting_asc_desc"  id="sorting_asc_desc" value="${sorting_asc_desc}"/>
						<input type="hidden" name="searchValue"  value="${searchValue}"/>
						<input type="hidden" name="baseLovId" value="${baseLov.baseLovId}"></input>
						<input type="hidden" name="token" value="${token}"></input>
						<input type="hidden" name="iDisplayStart" value="${iDisplayStart}">

							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="公司编号"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="enterpriseId" value="${baseLov.enterpriseId}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>


						
							<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="用户ID"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="userId" value="${baseLov.userId}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="模块名称"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="moduleName" value="${baseLov.moduleName}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="参数key"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="paramKey" value="${baseLov.paramKey}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="国际化key"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="i18nParamKey" value="${baseLov.i18nParamKey}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="数据类型"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="dataType" value="${baseLov.dataType}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="option key"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="optionKey" value="${baseLov.optionKey}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="option 排序"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="optionOrder" value="${baseLov.optionOrder}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="option 描述"></spring:message>：</label>

								<div class="controls">

									<textarea maxlength="30" name="optionDesc" value="${baseLov.optionDesc}"  class="m-wrap" />
									</textarea>
									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="国际化描述"></spring:message>：</label>

								<div class="controls">

									<textarea maxlength="30" name="i18nOptionDesc" value="${baseLov.i18nOptionDesc}"  class="m-wrap" />
									</textarea>
									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="父ID"></spring:message>：</label>

								<div class="controls">

									<input type="text" maxlength="30" name="parentId" value="${baseLov.parentId}"  class="m-wrap" />

									<span class="help-inline"></span>

								</div>

							</div>
							
								<div class="form-group">

								<label class="col-sm-3 control-label no-padding-right" for="form-field-1"><spring:message code="是否有效"></spring:message>：</label>

								<div class="controls">
									
									<input type="radio"  name="valid" value="1" > 有效
									<input type="radio"  name="valid" value="0"> 无效
									<span class="help-inline"></span>

								</div>

							</div>
							
						
						<div class="form-actions center">
						<button type="submit" class="btn btn-xs btn-primary"><spring:message
													code="btn.common.save"></spring:message></button>
									

										<button type="button" class="btn btn-xs btn-primary" onclick="back();" class="btn"><spring:message
													code="btn.common.back"></spring:message></button>

						 </div>
						
						
					
							</form>
						</div>
			</div>
			<!-- BEGIN PAGE CONTAINER-->


			
		</div>
		<!-- content end -->


		
		


</body>